use std::io::stdin;
use std::process::exit;

fn cut(input: &str, target: usize) -> Option<char>{
    input.chars().nth(target)
}

fn main() {
    let mut raw = String::new();//&str is immutable

    match stdin().read_line(&mut raw){
        Ok(_length) => (),//No errors
        Err(e) => eprintln!("could not get numbers due to: {e}")
    }
    //Default data formation: {i i i i i}

    if raw.len() != 11 {//"/n"
        eprintln!("Invalid length! Your need to type 'i i i i i'");
        exit(101);
    }

    println!("{} {} {}", cut(&raw, 8).unwrap(), cut(&raw, 6).unwrap(), cut(&raw, 4).unwrap());
    println!("{}", cut(&raw, 2).unwrap());
    println!("{}", cut(&raw, 0).unwrap());

    exit(0);
}